package com.niguang.work.api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_user_bank")
public class UserBank extends Model<UserBank> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 卡号
     */
    private String bankCard;
    /**
     * 开户银行
     */
    private String bankName;
    private String subBranchId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 持卡人姓名
     */
    private String userName;
    /**
     * now()
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 是否删除 0-未删除 1-已删除
     */
    @TableLogic
    private Integer delFlag;
    private String remark;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBankCard() {
        return bankCard;
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getSubBranchId() {
        return subBranchId;
    }

    public void setSubBranchId(String subBranchId) {
        this.subBranchId = subBranchId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public static final String ID = "id";

    public static final String BANK_CARD = "bank_card";

    public static final String BANK_NAME = "bank_name";

    public static final String SUB_BRANCH_ID = "sub_branch_id";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String REMARK = "remark";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserBank{" +
        "id=" + id +
        ", bankCard=" + bankCard +
        ", bankName=" + bankName +
        ", subBranchId=" + subBranchId +
        ", userId=" + userId +
        ", userName=" + userName +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        ", remark=" + remark +
        "}";
    }
}
